import json

f = open('simple-dstc2-trn.full.json')
data = json.load(f)
f.close()

keys1 = set()
keys2 = set()
for d in data:
    for s in d:
        k = s.keys()
        if s['speaker'] == 1:
            keys1 = keys1.union(set(k))
        else:
            keys2 = keys2.union(set(k))

print(keys1)
print(keys2)
